package com.cqie.tes.domain.vo.tes.evalute.result;

import lombok.Data;

@Data
public class ResultVo implements Cloneable{
    /**
     * 学生评价
     * */
    private String name;

    /**
     * 学生评价
     * */
    private String deptName;
    /**
     * 学生评价
     * */
    private Long deptId;
    /**
     * 学生评价
     * */
    private Long empId;
    /**
     * 学生评价
     * */
    private Long taskId;

    /**
     * 学生评价
     * */
    private ResultTypeVo student = new ResultTypeVo();
    /**
     * 教师自评
     * */
    private ResultTypeVo teacherSelf = new ResultTypeVo();
    /**
     * 教师互评
     * */
    private ResultTypeVo teacherEach = new ResultTypeVo();
    /**
     * 教研室评价
     * */
    private ResultTypeVo staff = new ResultTypeVo();
    /**
     * 系部评价
     * */
    private ResultTypeVo department = new ResultTypeVo();
    /**
     * 总分
     */
    private double score = 0.0;

    @Override
    public ResultVo clone() throws CloneNotSupportedException {
        ResultVo rvo;
        try {
            rvo = (ResultVo)super.clone();

            rvo.student = (ResultTypeVo)student.clone();
            rvo.teacherSelf = (ResultTypeVo)teacherSelf.clone();
            rvo.teacherEach = (ResultTypeVo)teacherEach.clone();
            rvo.staff = (ResultTypeVo)staff.clone();
            rvo.department = (ResultTypeVo)department.clone();
        }catch (Exception e){
            rvo = new ResultVo();
            e.printStackTrace();
        }
        return rvo;
    }
}
